package com.feicheng.lanniao.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.feicheng.lanniao.result.ResultInfo;
import com.feicheng.lanniao.service.ICarSellPriceService;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author feichengTech
 * @since 2021-09-02
 */
@RestController
@RequestMapping("/lanniao-admin/sellprice")
public class CarSellPriceController {
	@Autowired
	ICarSellPriceService iCarSellPriceService;
	/**
	 * 查询所有卖车价格
	 * @return 所有卖出价格集合
	 */
	@GetMapping("/list")
	public ResultInfo getAllPrices() {
		return ResultInfo.success(iCarSellPriceService.list());
	}
}
